<!-- $Id: article_list.htm 16783 2009-11-09 09:59:06Z liuhui $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<div class="form-div">
  <form action="javascript:searchNode()" name="searchForm" >
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
	{$lang.collect_goods_cat}：
    <select name="cat_id" >
		<option value="0">-{$lang.all}-</option>
		{foreach from="$cats" item=cat}
		<option value="{$cat.cat_id}" {if $cat.cat_id eq $cat_id}selected{/if}>{$cat.cat_name}</option>
		{/foreach}
    </select>
	{$lang.node_keyword}：
     <input type="text" name="keyword" id="keyword" value="{$keyword}" placeholder="{$lang.node_keyword}"/>
    <input type="submit" value="{$lang.button_search}" class="button" />
  </form>
</div>


<form method="POST" action="article.php?act=batch_remove" name="listForm">
<!-- start cat list -->
<div class="list-div" id="listDiv">
{/if}

<table cellspacing='1' cellpadding='3' id='list-table'>
  <tr>
    <th>{$lang.collection_id}</th>
    <th>{$lang.node_title}</th>
    <th>{$lang.last_time}</th>
	<th>{$lang.site_status}</th>
	<th>{$lang.content_status}</th>
    <th>{$lang.content_operation}</th>
	
    <th>{$lang.handler}</th>
  </tr>
  {foreach from=$node_list item=list}
  <tr>
    <td align="center">{$list.id}</td>
    <td align="center" class="first-cell">{$list.name}</td>
    <td align="center">{$list.lastdate|date:"Y-m-d H:i"}</td>
	<td align="center">
		{$lang.collected}：{$list.site_num}&nbsp;|&nbsp;
		{$lang.wait_collect}：{$list.site_no_read}
	</td>
	<td align="center">
		{$lang.collected}：{$list.cnt_num}&nbsp;|&nbsp;
		{$lang.wait_implode}：{$list.cnt_no_implode}
	</td>
    <td align="center">
	<a href="javascript:;" onclick="window.open('collection.php?act=collection_url&cid={$list.id}','{$lanng.op_collect_site}','height=600,width=650,top=80,left=300,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');">[{$lang.op_collect_site}]</a> 
	<a href="javascript:;" onclick="window.open('collection.php?act=collection_content&cid={$list.id}','{$lang.op_collect_cnt}','height=600,width=550,top=80,left=300,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');">[{$lang.op_collect_cnt}]</a>
	<a href="collection.php?act=content_list&cid={$list.id}">[{$lang.op_implode_cnt}]</a>
	</td>
	
    <td align="center">
	<a href="javascript:;" onclick="window.open('collection.php?act=url_test&cid={$list.id}','{$lang.op_url_test}','height=600,width=550,top=80,left=300,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');">[ {$lang.op_url_test} ]</a> 
	<a href="javascript:;" onclick="window.open('collection.php?act=content_test&cid={$list.id}','{$lang.op_cnt_test}','height=600,width=800,top=80,left=300,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');">[ {$lang.op_cnt_test} ]</a> 
	<a href="collection.php?act=node_edit&nodeid={$list.id}">[{$lang.op_node_modify}]</a> <a href="collection.php?act=node_copy&cid={$list.id}">[{$lang.op_node_copy}]</a> 
	<!--<a href="">[{$lang.op_node_implode}]</a>-->
	<a href="javascript:;" onclick="confirm('{$lang.confirm_node_delete}')?location.href='collection.php?act=node_delete&nodeid={$list.id}':''" >[{$lang.op_node_delete}]</a>
	</td> 
   </tr>
  
   {foreachelse}
	<tr><td colspan="5" align="center">{$lang.no_data}</td></tr>
	
  {/foreach}
  <tr>&nbsp;
    <td align="right" nowrap="true" colspan="8">{include file="page.htm"}</td>
  </tr>
</table>

{if $full_page}
</div>


</form>
<!-- end cat list -->
<script type="text/javascript" language="JavaScript">
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};
  listTable.filter.act='node_query';

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}
  {literal}
	listTable.filter.act='node_query';
  onload = function()
  {
    // 开始检查订单
    startCheckOrder();
  }
  
   /* 搜索采集内容 */
 function searchNode()
 {
    listTable.filter.keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
    listTable.filter.cat_id = parseInt(document.forms['searchForm'].elements['cat_id'].value);
    listTable.filter.page = 1;
	listTable.filter.act='node_query';
	
    listTable.loadList();
 }
 {/literal}
</script>
{include file="pagefooter.htm"}
{/if}
